package com.hs.egova.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.*;

/**
 * @author husheng
 * @version v1.0
 * @date 2021/7/27 16:23
 * @email husheng@egova.com.cn
 */
@Data
public class UserVo {

    @ApiModelProperty("身份id")
    private Long id;

    @ApiModelProperty("姓名")
    @NotBlank(message = "姓名不能为空")
    private String userName;

    @ApiModelProperty("备注")
    private String note;

    @ApiModelProperty("年龄")
    @NotNull(message = "年龄不能为空")
    @Min(value = 0, message = "年龄必须大于等于0")
    private Integer age;

    @ApiModelProperty("展示排序")
    private Integer displayOrder;

    @ApiModelProperty("")
    @AssertFalse(message = "isFalse必须为false")
    private Boolean flag;


    @ApiModelProperty("文件")
    private MultipartFile file;
}
